from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from . import views

urlpatterns = [

]

# 使用路由实现url
# 提供根路有
router = DefaultRouter()
# 注册,第一个参数,访问前缀
router.register('areas', views.AreasViewSet, base_name='areas')
urlpatterns += router.urls